package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 管理员表
 * </p>
 *
 * @author hyb
 * @since 2024-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Admin implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 管理员账号
     */
    @TableId(value = "admin_id", type = IdType.AUTO)
    private Integer adminId;

    /**
     * 用于登录的密码
     */
    private String password;

    /**
     * 管理员年龄
     */
    private Integer age;

    /**
     * 管理员邮箱
     */
    private String email;

    /**
     * 管理员账户状态  0停用，1激活
     */
    private Integer isActive;

    /**
     * 	记录最后更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 管理员账户创建时间
     */
    private LocalDateTime createTime;

    public Admin() {
        // 可以留空或者初始化一些基本属性
    }

    public Admin(Integer id, String password,Integer age,String email) {
        this.adminId = id;
        this.password = password;
        this.age=age;
        this.email=email;
        this.isActive=1;
        this.createTime = LocalDateTime.now();
        this.updateTime = LocalDateTime.now();
    }


    public Admin(Object o, String number, int i, String mail, int i1, LocalDateTime now, LocalDateTime now1) {
    }
}
